package com.jic.order.mapper;

import com.jic.order.entity.OrderDeliveryType;
import com.jic.order.request.OrderDeliveryTypeRequest;
import com.jic.order.response.OrderDeliveryTypeResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单配送方式
 * @author : 
 * @email : 
 * @since : 2020-01-16 07:57:33
 * @version : v1.0.0
 */
@Mapper
public interface  OrderDeliveryTypeMapper {

    long insert(OrderDeliveryTypeRequest orderDeliveryType);

    long delete(Long id);

    long update(OrderDeliveryTypeRequest orderDeliveryType);

    OrderDeliveryType queryByPrimaryKey(Long id);

    List<OrderDeliveryType> query(OrderDeliveryType orderDeliveryType);

    List<OrderDeliveryTypeResponse> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("orderDeliveryType") OrderDeliveryTypeRequest orderDelivery);

    long queryPageCount(OrderDeliveryTypeRequest orderDeliveryType);
}